import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Changelog {
	@PrimaryGeneratedColumn("uuid")
	id: string;

	@Column('text')
	doc_id: string;

	@Column('text')
	editor: string;

	@Column({ type: 'longtext', comment: '文档更新附带信息' })
	message: string;

	@Column({ type: 'longtext', comment: '版本号暂时和上传时间相同' })
	version: number;

	@Column({ type: 'bigint', comment: '上传时间' })
	edit_time: number;

}